#include "udpclient.h"

UdpClient::UdpClient(QObject *parent)
    : QObject{parent}
{
    udpSocket = new QUdpSocket(this);
}

void UdpClient::sendDatagram(const QByteArray &data, const QHostAddress &address, quint16 port) {
    udpSocket->writeDatagram(data, address, port);
}
